<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="<%=basePath %>/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="<%=basePath %>/css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="<%=basePath %>/css/style.css" />
	<script type="text/javascript" src="<%=basePath %>/dist/libs/jquery.js"></script>
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }
    </style>
    <script type="text/javascript">
   	 	$( document ).ready(function() {
    		//var a='<s:property value="#request.test"/>';
    		//alert(a);
    		
		});
    	function addchance(){
    		window.location.href="chance!toAddChance.action";
    	}
    	function dispatchchance(){
    		
    	}
    </script>
</head>
<body>
<form class="form-inline definewidth m20" action="" method="post">    
     <label>客户经理:</label><select id="manager"><option>xiaow</option><option>xiaol</option></select>
      <input type="button" class="btn btn-success"  onclick="dispatchchance();" value="指派销售机会"/>
     <input type="button" class="btn btn-success"  onclick="addchance()" value="新增销售机会"/>
</form>
<table class="table table-bordered table-hover definewidth m10">
    <thead>
    <tr>
    	<th><input type="checkbox"/></th>
        <th width="5%">编号</th>
        <th width="10%">客户名称</th>
        <th width="30%">概要</th>
        <th width="10%">联系人</th>
        <th width="10%">联系人电话</th>
        <th width="10%">创建人</th>
        <th width="20%">创建时间</th>
        <th width="5%">操作</th>
    </tr>
    </thead>
    <s:if test='#request.list.size==0'>
    	<tr><td colspan=9 style="text-align:center;">没有记录</td></tr>
    </s:if>
    <s:else>
    <s:iterator value="#request.list" status="rn" >
    <tr>
    	<td><input type="checkbox"/></td>
    	<td>
    		<s:property value="#rn.index+1"/>
    	</td>
    	<td>
    		<s:property value="custom_name"/>
    	</td>
    	<td>
    		<s:property value="about"/>
    	</td>
    	<td>
    		<s:property value="link_name"/>
    	</td>
    	<td>
    		<s:property value="link_phone"/>
    	</td>
    	<td>
    		<s:property value="builder_chance"/>
    	</td>
    	<td>
    		<s:property value="build_time"/>
    	</td>
    	<td>
    		<a href="edit.html">编辑</a>
    	</td>
    </tr>
    </s:iterator>
    </s:else>
</table>
<p style="margin-left:35%;"><a href="edit.html">首页</a>&nbsp;<a href="edit.html">上一页</a>&nbsp;第<input style="width:20px;" type="text"/>页&nbsp;<a href="edit.html">下一页</a>&nbsp;<a href="edit.html">尾页</a></p>
</body>
</html>